<%@ page import="com.test.pojo.People" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
//        People people = new People();

    %>
    <jsp:useBean id="people" class="com.test.pojo.People" scope="page"/>
    <jsp:setProperty name="people" property="address" value="北京"/>
    <% // people.setName() %>
    <jsp:setProperty name="people" property="name" value="小贝"/>
    <jsp:setProperty name="people" property="age" value="3"/>
    <jsp:setProperty name="people" property="id" value="1"/>

    姓名：<jsp:getProperty name="people" property="address"/>
</body>
</html>
